<?php
/**
 *  NevuxBB - Free Forum Software
 *  Copyright (C) 2008, 2010 NevuxBB (No one specific author)*  This program is free software: you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License as published by
 *  the Free Software Foundation, either version 3 of the License, or
 *  (at your option) any later version.
 *
 *  This program is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU General Public License for more details.
 *
 *  You should have received a copy of the GNU General Public License
 *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
 *
 * ACP Index
 * File: index.php
 * Purpose: Managing the ACP
 * Todo: Complete the ACP
 *
 */

$acp = true;
require('../system/files/global.php');

// must be a valid session otherwise we wouldn't be here
// display the header data
$core_template_system->setvar(array('acp_page_title' => 'Miscellaneous Tasks',
									'tab' => 'misc',
									'show_full_header' => true));

// load the header
$core_template_system->pparse();

// load and display the main template body
$core_template_system->newTemplate(BASE_PATH . '/acp/template/main.html');
$core_template_system->pparse();

// what do we need to do?
switch($_GET['item']) {
	case 'serial':
		// serial functionality
		switch($_GET['do']) {
			case 'get':
				// obtain a key from the master server
				
				break;
			case 'remove':
				// remove the key stored in the db
				break;
			default:
				// nothing specific selected
				break;
		}
		break;
	default:
		// none selected
		break;
}

// display the content
$core_template_system->pparse();
$core_template_system->reset();

// load the footer
$core_template_system->newTemplate(BASE_PATH . '/acp/template/footer.html');
$core_template_system->pparse();
?>